home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmPropertiesDialog
- BorderStyle = 3 'Fixed Dialog
- Caption = "Displaying the Properties Dialog Box"
- ClientHeight = 1605
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 4815
- Icon = "frmPropertiesDialog.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1605
- ScaleWidth = 4815
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox txtFileName
- Height = 285
- Left = 480
- TabIndex = 0
- Text = "C:\Autoexec.bat"
- Top = 120
- Width = 4215
- End
- Begin VB.CommandButton Command1
- Caption = "&Properties..."
- Default = -1 'True
- Height = 375
- Left = 3480
- TabIndex = 1
- Top = 480
- Width = 1215
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "http://www.geocities.com/SiliconValley/Way/6445"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 195
- Left = 360
- TabIndex = 4
- Top = 1320
- Width = 4365
- End
- Begin VB.Label Label2
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Written for the VB Center Code Library"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 165
- Left = 2340
- TabIndex = 3
- Top = 1080
- Width = 2355
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "File:"
- Height = 195
- Left = 120
- TabIndex = 2
- Top = 150
- Width = 285
- End
- Attribute VB_Name = "frmPropertiesDialog"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim r As Long
- Dim FileName As String
- ' Get the file name and path from txtFileName
- FileName = (txtFileName)
- ' Show the properties dialog, passing the filename
- ' and the owner of the dialog
- r = ShowProperties(FileName, Me.hwnd)
-
- ' Display an error if the properties dialog could
- ' not be displayed
- If r <= 32 Then MsgBox "Error"
- End Sub
-